package com.example.mapper;

import com.example.domain.ResponseResult;
import com.example.domain.entity.College;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author TXX
* @description 针对表【college】的数据库操作Mapper
* @createDate 2023-02-05 01:42:18
* @Entity .domain.com.example.domain.entity.College
*/@Repository
public interface CollegeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(College record);

    int insertSelective(College record);

    College selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(College record);

    int updateByPrimaryKey(College record);

    List selectAll();

    Integer selectByCollegeName(String name);

    void insertCollege(String name);

    void deleteCollege(Integer id);

    String selectCollegeNameById(Integer id);

    void updateCollegeById(@Param("id") Integer id,@Param("name") String name);
}
